package cn.foolishbird.crow.enumeration;

import cn.foolishbird.crow.core.CrowEnum;
import cn.foolishbird.crow.enumeration.annotation.DefDictionary;
import cn.foolishbird.crow.enumeration.annotation.Dictionary;

/**
 * @author foolish-bird
 */
@Dictionary(value = "Pause", name = "正常/暂停")
public enum PauseEnum implements CrowEnum {

    @DefDictionary
    NORMAL(1, "正常"),
    PAUSE(2, "暂停");

    private final Integer status;

    private final String content;

    PauseEnum(Integer state, String desc) {
        this.status = state;
        this.content = desc;
    }


    @Override
    public Integer value() {
        return this.status;
    }

    @Override
    public String content() {
        return this.content;
    }

}
